<?php
session_start();

if ( $_SESSION['manager'] )
{
    require_once('../inc/config.db.php');

    $result = mysql_query(sprintf('SELECT * FROM `manager` ORDER BY `manager_name`'));

    while ( $row = mysql_fetch_assoc($result) )
    {
	$manager[] = $row;
    }

    print json_encode($manager);
}
?>
